//index.js
//获取应用实例
const app = getApp()

Page({
  data:{
    img: [{
      url1: '../../assets/collect/cardBack.png',
      url2: '../../assets/collect/gongTongTitle.png'
    },{
      url1: '../../assets/collect/cardBack.png',
      url2: '../../assets/collect/yingXingTitle.png'
    },{
      url1: '../../assets/collect/cardBack.png',
      url2: '../../assets/collect/xiangZhangTitle.png'
    },{
      url1: '../../assets/collect/cardBack.png',
      url2: '../../assets/collect/houJieTitle.png'
    },{
      url1: '../../assets/collect/cardBack.png',
      url2: '../../assets/collect/fuRongTitle.png'
    },{
      url1: '../../assets/collect/cardBack.png',
      url2: '../../assets/collect/dongYuanTitle.png'
    }],
    nav: ['../cards/gongtong/gongtong','../cards/yingxing/yingxing','../cards/xiangzhang/xiangzhang'
  ,'../cards/houjie/houjie','../cards/furong/furong','../cards/dongyuan/dongyuan']
  },
  toClickMap: function(){
   wx.navigateBack({
     delta: 0,
   })
  },
  toClickXiangZhang: function() {
    wx.navigateTo({
      url: '../xiangzhang/xiangzhang',
    })
  },
  toClickDetail: function(event){
    let index = event.currentTarget.dataset.index
    wx.navigateTo({
      url: this.data.nav[index],
    })
  }
})
